﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="EAppointmentsWPF.Login"
	x:Name="LoginControl"
	Width="Auto" Height="Auto" Loaded="UserControl_Loaded" >

	<UserControl.Resources>
		<ResourceDictionary>
            	<!-- Dictionaries-->
            	<ResourceDictionary.MergedDictionaries>
	                <ResourceDictionary Source="Resources\ControlStyles\Brushes.xaml"/>
                	<ResourceDictionary Source="Resources\ControlStyles\Buttons.xaml"/>
                	<ResourceDictionary Source="Resources\ControlStyles\ComboBox.xaml"/>
                	<ResourceDictionary Source="Resources\ControlStyles\CheckBox.xaml"/>
                    <ResourceDictionary Source="Resources\ControlStyles\DatePicker.xaml"/>
                	<ResourceDictionary Source="Resources\ControlStyles\ListBox.xaml"/>
					<ResourceDictionary Source="Resources\ControlStyles\ListView.xaml"/>
                	<ResourceDictionary Source="Resources\ControlStyles\Styles.xaml"/>
            	</ResourceDictionary.MergedDictionaries>			
		<Storyboard x:Key="LoginScreenDisappear">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>		
		</ResourceDictionary>
	</UserControl.Resources>
	<DockPanel x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
		<Border Width="Auto" Height="Auto" DockPanel.Dock="Top">
			<Grid Width="Auto" Height="Auto">
				<Border BorderBrush="{DynamicResource ControlsBorderBrush}" BorderThickness="3,3,3,0" Background="{DynamicResource MenuControlBrush}" CornerRadius="10,10,0,0" Width="Auto" Height="38" VerticalAlignment="Top">
					<Grid Width="287" Height="228">
						<TextBlock Height="Auto" FontSize="12" FontStyle="Normal" FontWeight="Bold" Foreground="#FFFFFFFF" Text="Sign In" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="36,9,0,0" VerticalAlignment="Top" Width="51"/>
						<Image HorizontalAlignment="Left" Margin="9.487,6,0,0" VerticalAlignment="Top" Width="19.027" Height="20" Source="Resources\Images\AppointmentsStar.bmp"/>
					</Grid>
				</Border>
				<Border BorderBrush="#FF3F74B5" BorderThickness="3,0,3,0" CornerRadius="0,0,0,0" Width="Auto" Margin="0,38,0,29">
					<DockPanel Height="Auto" LastChildFill="False">
						<Border Width="Auto" DockPanel.Dock="Top">
							<Grid Width="Auto" Height="Auto" Background="{DynamicResource MainHeaderBrush}">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*"/>
								</Grid.ColumnDefinitions>
								<TextBlock Height="Auto" FontSize="12" FontStyle="Normal" FontWeight="Bold" Foreground="{DynamicResource BlueLoginScreenFontBrush}" Text="Username :" TextWrapping="NoWrap" Width="68.683" HorizontalAlignment="Left" Margin="10,34,0,0" VerticalAlignment="Top"/>
								<TextBlock FontSize="12" FontStyle="Normal" FontWeight="Bold" Foreground="{DynamicResource BlueLoginScreenFontBrush}" Text="Password :" TextWrapping="NoWrap" Width="66.14" Height="Auto" d:LayoutOverrides="Height" HorizontalAlignment="Left" Margin="12.543,80,0,66.517"/>
								<TextBox x:Name="txtUsername" FontSize="14" FontWeight="Bold" Text="" TextAlignment="Left" TextWrapping="Wrap" Background="#FFFFFFFF" Foreground="{DynamicResource DarkBlueFontBrush}" KeyDown="txtUsername_KeyDown" Margin="110.9,27,0,100" VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="142"/>
								<PasswordBox x:Name="txtPassword" FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource DarkBlueFontBrush}" KeyDown="txtPassword_KeyDown" Margin="109.9,80,0,49" HorizontalAlignment="Left" Width="142"/>
								<Button x:Name="btnSignIn" Style="{StaticResource BlueGradientButtonStyle}" Content="Sign In &gt;&gt;" FontSize="12" Foreground="#FFFFFFFF" Click="btnSignIn_Click" Margin="176.9,124,0,12" VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="75"/>
							</Grid>
						</Border>
					</DockPanel>
				</Border>
				<Border BorderBrush="{DynamicResource ControlsBorderBrush}" BorderThickness="3,0,3,3" Background="{DynamicResource MenuControlBrush}" CornerRadius="0,0,10,10" Width="Auto" Height="29" VerticalAlignment="Bottom"/>
			</Grid>
		</Border>
	</DockPanel>
</UserControl>